package com.ipan.poi.excel.config;


/**
 * 导入配置文件信息
 * 
 * @author iPan
 * @version 2013-9-14
 */
public class ImportConfiguration extends XlsConfiguration {

	public final static String DEFAULT_PATH = "xls_import_cfg.xml";
	
	public static ImportConfiguration INSTANCE = null;
	
	private ImportConfiguration() {
		super(new XlsImports());
		flushConfig();
	}
	
	@Override
	public void flushConfig() {
		initDefaultConfig(DEFAULT_PATH);
	}
	
	public synchronized static ImportConfiguration getInstance() {
		if (INSTANCE == null) {
			INSTANCE = new ImportConfiguration();
		}
		return INSTANCE;
	}
	
}
